package cn.ecut.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author lujiapeng
 * @className AnnotationServlet
 * @description 使用注解，进行开发
 * @date 2020/9/11 8:11
 **/
@WebServlet( value = {"/annotation" , "/anno"} )
public class AnnotationServlet  extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("接收到了 注解访问 Servlet ");
    }
}
